﻿<%@ Page Language="C#" MasterPageFile="~/Pages/Main.Master" AutoEventWireup="true"
    CodeBehind="Password.aspx.cs" Inherits="AUV5.Web.Pages.Password" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#imgCode").click(function () {
                RefreshValidateCode("#imgCode");
            });
            $("#aNext").click(function () {
                RefreshValidateCode("#imgCode");
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p class="logintxt">
        忘记密码</p>
    <p class="goreg">
        已经注册过？<a href="Login.aspx">登录>></a></p>
    <div class="fl login_left">
        <div class="login_bar">
            <div class="login">
                忘记密码？请填写以下信息找回密码！
            </div>
            <p class="addinfo">
                请填写以下信息</p>
            <div class="login">
                <div runat="server" id="divUserName">
                    <p>
                        <label>
                            用户名或邮箱</label>
                        <asp:TextBox ID="txtUserName" class="logininput" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtUserName"
                            ValidationGroup="next" ErrorMessage="*"></asp:RequiredFieldValidator>
                        <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
                        <span>您注册时填写的用户名</span>
                    </p>
                    <p class="codepic">
                        <span class="codeimg">
                            <img id="imgCode" src="/Handler/MathValidateCodeHandler.ashx" title="点击图片，换一张" alt="验证码图片" /></span>
                        <span class="codeupdata"><a href="javascript:void(0);" style="color: #3a92cf" id="aNext">
                            算不出来？</a></span>
                    </p>
                    <p>
                        <label>
                            好难的数学题</label>
                        <asp:TextBox ID="txbResult" class="logininput" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txbResult"
                            ValidationGroup="next" ErrorMessage="*"></asp:RequiredFieldValidator>
                    </p>
                    <p class="btn">
                        <asp:Button ID="btnNext" ValidationGroup="next" runat="server" Text="下一步" OnClick="btnNext_Click" />
                    </p>
                </div>
                <div runat="server" id="divChange">
                    <p>
                        <label>
                            请输入新密码
                        </label>
                        <asp:TextBox ID="txtPassword" class="logininput"  TextMode="Password" runat="server" MaxLength="20"></asp:TextBox>
                        <span>请您设置新的密码</span>
                    </p>
                    <p>
                        <label>
                            请再输入一遍
                        </label>
                        <asp:TextBox ID="txtRePassword" class="logininput"  MaxLength="20" TextMode="Password" runat="server"></asp:TextBox>
                        <span>请再输入一遍新密码</span>
                    </p>
                    <p class="btn">
                        <asp:Button ID="btnChange" runat="server" Text="提交" OnClick="btnChange_Click" />
                    </p>
                </div>
            </div>
        </div>
    </div>
    <div class="fr login_right">
        <div class="noreg_info">
            <p class="noreg">
                啊!你忘记密码了？</p>
            <p class="goregq">
                快快找回你的密码！分享你的喜悦~~~</p>
            <p class="newreg">
                <a href="Register.aspx">注册新用户>></a></p>
        </div>
    </div>
</asp:Content>
